package com.e3.purchase.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.e3.bill.entity.BillDetailEntity;

@Entity
@Table(name="T_PO_DETAIL")
public class PODetailEntity extends BillDetailEntity{
	private static final long serialVersionUID = -3490577507462281438L;
	
	private String contractNo;
	
	private Long goodsId;
	
	private Double price;
	
	private Double taxPrice;
	
	private Double extaxPrice;
	
	private Long measureunitId;
	
	private Double validNumber;
	
	private Double amount;
	
	private Long taxId;
	
	private Double taxAmount;
	
	private Double totalAmount;
	
	private Long planArriveTime;
	
	private Long arriveTime;
	
	private Long applyDeptId;
	
	private Long warehouseId;
	
	private String remark;
	
	private POMainEntity mainEntity;
	
	@Column(name="CONTRACT_NO")
	public String getContractNo(){
		return this.contractNo;
	}
	
	public void setContractNo(String contractNo){
		this.contractNo = contractNo;
	}
	
	@Column(name="GOODS_ID")
	public Long getGoodsId(){
		return this.goodsId;
	}
	
	public void setGoodsId(Long goodsId){
		this.goodsId = goodsId;
	}
	
	@Column(name="PRICE")
	public Double getPrice(){
		return this.price;
	}
	
	public void setPrice(Double price){
		this.price = price;
	}
	
	@Column(name="TAX_PRICE")
	public Double getTaxPrice(){
		return this.taxPrice;
	}
	
	public void setTaxPrice(Double taxPrice){
		this.taxPrice = taxPrice;
	}
	
	@Column(name="EXTAX_PRICE")
	public Double getExtaxPrice(){
		return this.extaxPrice;
	}
	
	public void setExtaxPrice(Double extaxPrice){
		this.extaxPrice = extaxPrice;
	}
	
	@Column(name="MEASUREUNIT_ID")
	public Long getMeasureunitId(){
		return this.measureunitId;
	}
	
	public void setMeasureunitId(Long measureunitId){
		this.measureunitId = measureunitId;
	}
	
	@Column(name="VALID_NUMBER")
	public Double getValidNumber(){
		return this.validNumber;
	}
	
	public void setValidNumber(Double validNumber){
		this.validNumber = validNumber;
	}
	
	@Column(name="AMOUNT")
	public Double getAmount(){
		return this.amount;
	}
	
	public void setAmount(Double amount){
		this.amount = amount;
	}
	
	@Column(name="TAX_ID")
	public Long getTaxId(){
		return this.taxId;
	}
	
	public void setTaxId(Long taxId){
		this.taxId = taxId;
	}
	
	@Column(name="TAX_AMOUNT")
	public Double getTaxAmount(){
		return this.taxAmount;
	}
	
	public void setTaxAmount(Double taxAmount){
		this.taxAmount = taxAmount;
	}
	
	@Column(name="TOTAL_AMOUNT")
	public Double getTotalAmount(){
		return this.totalAmount;
	}
	
	public void setTotalAmount(Double totalAmount){
		this.totalAmount = totalAmount;
	}
	
	@Column(name="PLAN_ARRIVE_TIME")
	public Long getPlanArriveTime(){
		return this.planArriveTime;
	}
	
	public void setPlanArriveTime(Long planArriveTime){
		this.planArriveTime = planArriveTime;
	}
	
	@Column(name="ARRIVE_TIME")
	public Long getArriveTime(){
		return this.arriveTime;
	}
	
	public void setArriveTime(Long arriveTime){
		this.arriveTime = arriveTime;
	}
	
	@Column(name="APPLY_DEPT_ID")
	public Long getApplyDeptId(){
		return this.applyDeptId;
	}
	
	public void setApplyDeptId(Long applyDeptId){
		this.applyDeptId = applyDeptId;
	}
	
	@Column(name="WAREHOUSE_ID")
	public Long getWarehouseId(){
		return this.warehouseId;
	}
	
	public void setWarehouseId(Long warehouseId){
		this.warehouseId = warehouseId;
	}
	
	@Column(name="REMARK")
	public String getRemark(){
		return this.remark;
	}
	
	public void setRemark(String remark){
		this.remark = remark;
	}

	@ManyToOne
	@JoinColumn(name="PO_ID")
	public POMainEntity getMainEntity() {
		return mainEntity;
	}

	public void setMainEntity(POMainEntity mainEntity) {
		this.mainEntity = mainEntity;
	}
	
}
